package com.alex.boot.entity;

import lombok.*;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 测试MQ发送的消息封装体.
 */
@Data
@Builder
@Table(name = "maill")
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class MailEntity implements Serializable {

    private static final long serialVersionUID = -2164058270260403154L;

    /**
     * 消息id
     */
    private Long id;

    /**
     * 消息数据
     */
    private String data;

    /**
     * 创建时间
     */
    private Date createTime;

}
